#!/bin/bash

rm "libprimitives.so.1.0.0" "libprimitives.so.1" "libprimitives.so"

if /usr/bin/cmake .; then
  echo "[cmake] 执行成功"
  if /usr/bin/make; then
    echo "[make] 执行成功"
    dart run ffigen --config ffigen.yaml
  fi
fi
echo "CODE: $?"
#flutter pub run ffigen --config ffigen.yaml
